<template>
  <div class="charts">{{ msg }}</div>
</template>

<script lang="ts">
import axios from 'axios'
import { defineComponent, onMounted } from 'vue'
export default defineComponent({
  name: 'Charts',
  setup() {
    const msg:string = '子组件'
    onMounted(() => {
        getContent()
    })
    function getContent () {
        const params = new FormData()
        params.append('username', 'test1')
        params.append('password', '000000')
        axios.post('/kol/user/login', params).then(res => {
            console.log(res)
        })
    }
    return {
        msg
    }
    
  }
})
</script>

<style>
.charts {
    width: 200px;
    height: 200px;
    border-radius: 20%;
    background-color: aquamarine;
    text-align: center;
    line-height: 200px;
    margin: auto;
}
</style>